﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AIOptimization.Algorithms.Repositories
{
    public class Ant
    {
        public List<Train> TrainResult { get; set; }
        public int BestTime { get; set; }
        public double BestLength { get; set; }
        public int[] BestTrail { get; set; }
        public Ant()
        {
            TrainResult = new List<Train>();
        }

        public override string ToString()
        {
            StringBuilder s = new StringBuilder();
            s.AppendLine("Best Length :" + BestLength);
            s.AppendLine("Best Time :" + BestTime);
            return s.ToString();
        }
    }

    public class Train
    {
        public int Time { get; set; }
        public double Length { get; set; }
        public int[] Trail { get; set; }

        public Train(int time, double length, int[] trail)
        {
            Time = time;
            Length = length;
            Trail = trail;
        }
    }
}
